package com.lantosec.hmrp.modules.eval.mapper;

import com.lantosec.hmrp.modules.eval.entity.EvalItem;
import com.lantosec.hmrp.modules.eval.entity.EvalType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 考评项目分类定义 Mapper 接口
 * </p>
 *
 * @author AutoCode
 * @since 2020-03-13
 */
public interface EvalTypeMapper extends BaseMapper<EvalType> {

    /**
     * 查询项目分类下的项目集合
     * @param evalTypeId
     * @return
     */
    List<EvalItem> getEvalItemList(@Param("evalTypeId") String evalTypeId);

    String queryMaxIdByParentId(@Param("parentId") String parentId);

    String queryMaxId();

    List<EvalItem> getEvalItems(@Param("evalTypeId") String evalTypeId,@Param("evalTarget") Integer evalTarget);

    List<EvalItem> getEvalItemsApply(@Param("evalTypeId") String evalTypeId,@Param("evalTarget") Integer evalTarget);
}
